

function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (status == 0 && mode == 0) {
        cm.dispose();
        return;
    }
    if (mode == 1) {
        status++;
    } else {
        status--;
    }
    if (status == 0) {
		var selStr = "#d#e组队副本一条龙\r\n";
        selStr += "#n#d难度：#r★\r\n\r\n";
		selStr += "#b副本要求：废弃副本-通关[#r"+cm.getBossLog("废弃副本")+"#b/1]次#n\r\n"
		selStr += "          玩具副本-通关[#r"+cm.getBossLog("玩具副本")+"#b/1]次#n\r\n"
		selStr += "          天空副本-通关[#r"+cm.getBossLog("天空副本")+"#b/1]次#n\r\n"    
		selStr += "          毒物副本-通关[#r"+cm.getBossLog("毒物副本")+"#b/1]次#n\r\n\r\n" 		
		selStr += "#d任务奖励：点券10000点 / #r元宝1点\r\n";
		selStr += "#v4001126# #v2614000# #v2028074# #v2430402# #v4000089# #v4251200# #v4001028# #v4000081#\r\n\r\n";
        selStr += "#r#L0#领取[初级]奖励(请保持背包足够)\r\n";
		cm.sendSimple(selStr);
    } else if (status == 1) {
        switch (selection) {
        case 0:
            if (cm.getBossLog("废弃副本") < 1){
				cm.sendOk("废弃副本-通关["+cm.getBossLog("废弃副本")+"/1]次");
				cm.dispose();
			}else if (cm.getBossLog("玩具副本") < 1){
				cm.sendOk("玩具副本-通关["+cm.getBossLog("玩具副本")+"/1]次");
				cm.dispose();
			}else if (cm.getBossLog("天空副本") < 1){
				cm.sendOk("天空副本-通关["+cm.getBossLog("天空副本")+"/1]次");
				cm.dispose();
			}else if (cm.getBossLog("毒物副本") < 1){
				cm.sendOk("毒物副本-通关["+cm.getBossLog("毒物副本")+"/1]次");
				cm.dispose();
			}else if (cm.getBossLog("副本一条龙[初级]奖励") > 0){
				cm.sendOk("今日你已经领取过奖励了。");
				cm.dispose();
			}else if (cm.canHold(4000313,10) == false){
				cm.sendOk("请保证有足够的背包空间。");
				cm.dispose();
			}else{
				cm.setBossLog("副本一条龙[初级]奖励");
				cm.gainItem(2614000,20);//突破石
				cm.gainItem(2028074,1);//椅子箱子
				cm.gainItem(4001126,1000);//枫叶
				cm.gainItem(2430402,1);//普通饰品宝箱
				cm.gainItem(4000081,200);//初级强化石
				cm.setmoneyb(1);//奖励元宝
				cm.gainItem(4000089,10);//黑金硬币
				cm.gainItem(4001028,1);
				cm.getPlayer().modifyCSPoints(1,5000, true);//给点卷5000
				cm.setBossLog("活跃度");
				cm.sendOk("领取成功~")
				cm.worldMessage(1, "【副本一条龙】   恭喜 " + cm.getName() + " ，领取副本一条龙奖励。");
				cm.dispose();
            break;
		}
    }
}}
